package com.fyyg.redis.common;

import redis.clients.jedis.ShardedJedis;

public class RedisTest {

	public static void main(String[] args) {
		ShardedJedis jedis = null;
		try{
			jedis=RedisBase.getInstance().getResource();
			//RedisUtil.lpushEventList(jedis, "login_key", "hei");
			//RedisUtil.sResetSet(jedis,"luck_no_t");
			//String[] values = {"1001","1002","1003","1004","1005","1006"};
			//RedisUtil.saddSet(jedis,"luck_no_t",values);
			//System.out.println(RedisUtil.spopSet(jedis,"luck_no_5",2).toString());
		} catch (Exception e) {
			e.printStackTrace();
			RedisBase.getInstance().returnBrokenResource(jedis);
		}finally{
			RedisBase.getInstance().returnResource(jedis);
		}
	}
}
